package com.icebartech.core.utils;

import java.util.Collection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于汇出多个sheet的Vo The <code>ExcelSheet</code>
 * 
 */
@Data
public class ExcelSheet<T> {
    /**
     * Excel页签名称
     */
    private String sheetName;
    
    /**
     * Excel表头
     */
    private String[] headers;
    
    /**
     * Excel数据集合
     */
    private Collection<T> dataset;

    
    public String[] getHeaders() {
        return headers.clone();
    }

    public void setHeaders(String[] headers) {
        this.headers = headers.clone();
    }

}
